<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Calendario extends CI_Controller
{
	function index()
	{
		$this->display();
		$this->output->set_header("Cache-Control: no-store, no-cache, must-revalidate, no-transform, max-age=0, post-check=0, pre-check=0");
		$this->output->set_header("Pragma: no-cache"); 
	}
	
	function display($year = null,$month = null)
	{
		$data['contenido_principal'] = 'vista_calendario';
		$this->load->view('includes/plantilla', $data);
		
				
		$conf = array(
		'start_day' => 'monday',
		'show_next_prev' => true,
		'next_prev_url' => base_url().'index.php/calendario/display'
		);
		$this->load->library('calendar',$conf);
		$asd['calendario'] = $this->calendar->generate($year,$month);
	
	}
	
}